COM AT+COPS: network operator selection
COM AT+COPN: read operator names
COM AT+CPOL: preferred operator list
COM
COM Version History:
COM Version 1.0      11.2003   R. Weiden	started for platform C62
COM Version 1.1   09.12.2003   R. Weiden	adapted to R65, several improvements, added COPN, CPOL
COM Version 1.2   27.08.2004   R. Weiden	made runable with ATT2.0
COM Version 1.3   21.12.2004   T. Kleinmann     Changed ReceiveTimeout for at+cops
COM Version 1.4   24.05.2006   C. Grzegorczyk	Changed parameter for WAITFOR command-------------------------------------------------------------------------------------------------------------

COM AT+COPS: network operator selection
COM returns operator list with currently used network operator in state '2' 

# may take some time...
iOldTimeout=SetReceiveTimeout (35000)
AT+COPS=?
WAIT FOR +COPS: (2
COM query current provider
AT+COPS?
WAIT FOR +COPS: 

SetReceiveTimeout (iOldTimeout)

COM set to automatic mode
AT+COPS=0
WAIT FOR OK
COM verify
AT+COPS?
WAIT FOR +COPS: 0

COM -------------------------------------------------------------------------------------------------------------
COM AT+COPN: Read operator names
AT+COPN=?
WAIT FOR OK

iOldTimeout=SetReceiveTimeout (25000)
COM Read operator list
AT+COPN
WAIT FOR +COPN: "
SetReceiveTimeout (iOldTimeout)

COM try invalid commands
AT+COPN=3
WAIT FOR ERROR
AT+COPN="D2"
WAIT FOR ERROR
AT+COPN?
WAIT FOR ERROR

COM -------------------------------------------------------------------------------------------------------------
COM AT+CPOL: preferred operator list
AT+CPOL=?
WAIT FOR OK
COM query list
AT+CPOL?
WAIT FOR +CPOL: 1,2,"
WAITFOR OK

COM delete index 10
AT+CPOL=10
WAIT FOR OK
COM write to index 10
AT+CPOL=10,2,12345
WAIT FOR OK
COM query and verify
AT+CPOL?

#####24.05.2006  C. Grzegorczyk Changed parameter for WAITFOR command#####
##WAITFOR (1,'+CPOL: 10,2,12345')
WAITFOR +CPOL: 10,2,"12345"
WAITFOR OK

COM delete entry 10
AT+CPOL=10
WAIT FOR OK

AT


